OB.Emes_ActionButton = OB.Emes_ActionButton || {};

//点检计划导入
OB.Emes_ActionButton.Import_CheckPlanOrder_Btn = function(d,b) {
	var e = b.activeView.viewGrid;
	var a = e.getSelectedRecord();
	OB.MyPlanOrderRefresh = function(){
		b.activeView.refresh();
	}
	
	OB.Layout.ClassicOBCompatibility.Popup.open('ImportPlanOrderData', 500, 100,OB.Application.contextUrl + 'web/com.mes/html/ImportcheckPlan.html',    
				'点检计划上传', window, false, false, null, true, true);
		OB.Emes_ActionButton.MyRefresh=function(){
			b.view.viewGrid.refreshGrid();
		}
}


//保养计划导入
OB.Emes_ActionButton.Import_MaintainPlanOrder_Btn = function(d,b) {
	var e = b.activeView.viewGrid;
	var a = e.getSelectedRecord();
	OB.MyPlanOrderRefresh = function(){
		b.activeView.refresh();
	}
	
	OB.Layout.ClassicOBCompatibility.Popup.open('ImportMaintainPlan', 500, 100,OB.Application.contextUrl + 'web/com.mes/html/ImportMaintain.html',    
				'保养计划上传', window, false, false, null, true, true);
		OB.Emes_ActionButton.MyRefresh=function(){
			b.view.viewGrid.refreshGrid();
		}
}


//设备备品配件盘点导入
OB.Emes_ActionButton.Import_MaintainPlanOrder_Btn = function(d,b) {
	var e = b.activeView.viewGrid;
	var a = e.getSelectedRecord();
	OB.MyPlanOrderRefresh = function(){
		b.activeView.refresh();
	}
	
	OB.Layout.ClassicOBCompatibility.Popup.open('ImportSparepartsPlan', 500, 100,OB.Application.contextUrl + 'web/com.mes/html/ImportSpareparts.html',    
				'设备备品配件导入', window, false, false, null, true, true);
		OB.Emes_ActionButton.MyRefresh=function(){
			b.view.viewGrid.refreshGrid();
		}
}